package com.dayuanit.dy15.ebook.bookshop.mapper;

import com.dayuanit.dy15.ebook.bookshop.domain.OrderDetailDomain;
import com.dayuanit.dy15.ebook.bookshop.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    OrderDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);

    List<OrderDetail> listByOrderId(Long orderId);

    List<OrderDetailDomain> list4OrderInfo(Long orderId);

    List<OrderDetailDomain> list4OrderInfo2(@Param("orderIds") List<Long> orderIds);

}